package primitive;

import primitive.Arena.Bot;

public class FrameWorkBot extends Bot{
	
	private int y,x;
	private char[][] map;
	private int nAlive,nGrenade;
	private boolean radar; 
	
	public FrameWorkBot(Arena arena) {
		arena.super();
	}

	@Override
	public void run() {
		y = super.getY();
		x = super.getX();
		map = super.getVisible();
		nAlive = super.getNAlive();
		radar = super.hasRadar();
		nGrenade = super.getNGrenade();
		//Now do something with the information
		/**
		 * Specification:
		 * 
		 * Input:
		 * 	x,y: locaion on map
		 * 	map: 3 x 3 visibility grid 
		 * 	nAlive: number of people alive
		 * 	radar: if radar is enabled
		 * 	nGrenade: number of available grenade
		 * 
		 * 
		 * List of commands:
		 * 
		 * 	super.move(Arena.UP);
		 * 	super.move(Arena.DOWN);
		 * 	super.move(Arena.LEFT);
		 * 	super.move(Arena.RIGHT);
		 * 	super.shoot(Arena.UP);
		 * 
		 * 	super.shoot(Arena.UP);
		 * 	super.shoot(Arena.DOWN);
		 * 	super.shoot(Arena.LEFT);
		 * 	super.shoot(Arena.RIGHT);
		 * 
		 * Visibility grid:
		 *  Specification listed in Arena.java
		 */
	}
}
